<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="../lib/bootstrap-3.4.1-dist/css/bootstrap.min.css">
    <script src="../lib/jquery/jquery.min.js"></script>
    <script src="../lib/bootstrap-3.4.1-dist/js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="../css/login-design.css">
</head>
<body>
    <div class="father">
        <div class="zhuangtai">
            <span class="active">登录</span>
            <span>注册</span>
        </div>
        <div class="box">
            <div class="box1">
                <form class="form-horizontal bd">
                    <div class="form-group">
                      <label for="inputEmail3" class="col-sm-2 control-label">账号</label>
                      <div class="col-sm-10">
                        <input type="text" class="form-control" id="inputEmail3" placeholder="密码">
                      </div>
                    </div>
                    <div class="form-group">
                      <label for="inputPassword3" class="col-sm-2 control-label">密码</label>
                      <div class="col-sm-10">
                        <input type="password" class="form-control" id="inputPassword3" placeholder="密码">
                      </div>
                    </div>
                    <div class="form-group">
                      <div class="col-sm-offset-2 col-sm-10">
                        <div class="checkbox">
                          <label>
                            <input type="checkbox"> Remember me
                          </label>
                        </div>
                      </div>
                    </div>
                    <div class="form-group">
                      <div class="col-sm-offset-2 col-sm-10">
                        <button type="button" class="btn btn-default">注册</button>
                      </div>
                    </div>
                  </form>
            </div>
            <div class="box2">
                <form class="form-horizontal bd">
                    <div class="form-group">
                      <label for="inputEmail3" class="col-sm-2 control-label">账号</label>
                      <div class="col-sm-10">
                        <input type="text" class="form-control" id="inputEmail3" placeholder="账号">
                      </div>
                    </div>
                    <div class="form-group">
                      <label for="inputPassword3" class="col-sm-2 control-label">密码</label>
                      <div class="col-sm-10">
                        <input type="password" class="form-control" id="inputPassword3" placeholder="密码">
                      </div>
                    </div>
                    <div class="form-group">
                      <div class="col-sm-offset-2 col-sm-10">
                        <div class="checkbox">
                          <label>
                            <input type="checkbox"> Remember me
                          </label>
                        </div>
                      </div>
                    </div>
                    <div class="form-group">
                      <div class="col-sm-offset-2 col-sm-10">
                        <button type="button" class="btn btn-default">登录</button>
                      </div>
                    </div>
                  </form>
            </div>
        </div>
        
    </div>
</body>
<script>
    $(function(){
        $('.zhuangtai>span').click(function(){
            $(this).addClass('active').siblings().removeClass('active')
            $('.box').toggleClass('deg_180')
        })
    })
    
</script>
</html>